Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
interface System.​Collections.​Generic.​IList<​T>
Assembly: System.Runtime
Implemented Interfaces
- ICollection`1 (Inherits: IEnumerable<​T>IEnumerable)
Represents a collection of objects that can be individually accessed by index.
Properties
T
Item
Methods
int
IndexOf​(T item)
Determines the index of a specific item in the <see cref="T:System.Collections.Generic.IList`1" /> .
Returns The index of <paramref name="item" /> if found in the list; otherwise, -1.
item
The object to locate in the <see cref="T:System.Collections.Generic.IList`1" /> .
void
Insert​(int index,
T item)
Inserts an item to the <see cref="T:System.Collections.Generic.IList`1" /> at the specified index.
index
The zero-based index at which <paramref name="item" /> should be inserted.
item
The object to insert into the <see cref="T:System.Collections.Generic.IList`1" /> .
void
RemoveAt​(int index)
Removes the <see cref="T:System.Collections.Generic.IList`1" /> item at the specified index.
index
The zero-based index of the item to remove.